package com.youjiang.meeting.utils;

import java.util.Comparator;

import com.youjiang.meeting.bean.TheGameRanking;

/**
 * <p>
 * Title: ComparatorGameRanking
 * </p> 
 * <p>
 * Description:TODO
 * </p> 
 * <p>
 * Company: YouJiang
 * </p> 
 *
 * @author feng
 * @date 2016年12月3日 下午3:48:08
 * @version 1.0
 */
public class ComparatorGameRanking implements Comparator<TheGameRanking>{

	@Override
	public int compare(TheGameRanking o1, TheGameRanking o2) {
		long a= o1.getTime()-o2.getTime();
		if(a>0) return 1;
		else return -1;
	}

}
